﻿using Ec.NETCoreFramework.Common.Core;
using Ec.NETCoreFramework.Common.Core.Helpers;
using Ec.NETCoreFramework.Common.MQ;
using Ec.NETCoreFramework.Common.Core.Utilities;
using Ec.NETCoreFramework.Common.Core.Serializer;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Threading;
using System.Diagnostics;
using Ec.NETCoreFramework.Common;
using Ec.NETCoreFramework.Common.Clients;

namespace Ec.NETCoreFramework.Common.MSTest
{
    /// <summary>
    /// media 素材
    /// </summary>
    public class CustomMQMedia : TaskInterface
    {
        public override async Task<bool> ConsumeEvent(byte[] bytes)
        {
            var dic = ByteSerializer.Deserialize<Dictionary<string, object>>(bytes);

            Console.WriteLine(dic);
            return true;
        }

        private string _QueueName = string.Empty;
        public override string QueueName()
        {
            return "MSACormmerce.Warmup.Queue.StaticPage";
        }
        public override void SetConsumeConfig(byte[] consumeConfig)
        {

        }
    }

}
